package com.killer.service;

import java.util.Random;

/**
 * @author ：Killer
 * @date ：Created in 20-12-16 下午3:08
 * @description：${description}
 * @modified By：
 * @version: version
 */
public class HelloServiceImpl implements HelloService {

    public Random random = new Random();

    public String methodA() {
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "调用A方法成功";
    }

    public String methodB() {
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "调用B方法成功";
    }

    public String methodC() {
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "调用C方法成功";
    }
}
